package com.raycloud.robot.custom.zdfUtils.dto;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

public class ZdfEntity{
    private String imageUrl;
    private Double distance;
    private String entitId;
    private JSONObject additional;
    public ZdfEntity(){
        this.additional=new JSONObject();
    }
    public String getImageUrl(){
        return this.imageUrl;
    }
    public void setImageUrl(final String imageUrl){
        this.imageUrl=imageUrl;
    }
    public Double getDistance(){
        return this.distance;
    }
    public void setDistance(final Double distance){
        this.distance=distance;
    }
    public String getEntitId(){
        return this.entitId;
    }
    public void setEntitId(final String entitId){
        this.entitId=entitId;
    }
    public void setAdditional(final String additional){
        this.additional=JSON.parseObject(additional);
    }
    public void setAdditional(final String key,final Object value){
        this.additional.put(key,value);
    }
    public JSONObject getAdditional(){
        return this.additional;
    }
}
